<div class="refentry" lang="en" xml:lang="en"><a id="glLoadTransposeMatrix"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>glLoadTransposeMatrix — replace the current matrix with the specified row-major ordered matrix</p></div><div class="refsynopsisdiv"><h2>C Specification</h2><div class="funcsynopsis"><table><tr><td><code class="funcdef">void <b class="fsfunc">glLoadTransposeMatrixd</b>(</code></td><td>const GLdouble *  </td><td><var class="pdparam">m</var><code>)</code>;</td></tr></table></div><div class="funcsynopsis"><table><tr><td><code class="funcdef">void <b class="fsfunc">glLoadTransposeMatrixf</b>(</code></td><td>const GLfloat *  </td><td><var class="pdparam">m</var><code>)</code>;</td></tr></table></div></div><div class="refsect1" lang="en" xml:lang="en"><a id="parameters"></a><h2>Parameters</h2><div class="variablelist"><dl><dt><span class="term"><em class="parameter"><code>m</code></em></span></dt><dd><p>
                    Specifies a pointer to 16 consecutive values, which are used as the
                    elements of a
                    <math overflow="scroll">

                        <mrow>
                            <mn>4</mn>
                            <mo>×</mo>
                            <mn>4</mn>
                        </mrow>
                    </math>
                    row-major matrix.
                </p></dd></dl></div></div><div class="refsect1" lang="en" xml:lang="en"><a id="description"></a><h2>Description</h2><p>
            <code class="function">glLoadTransposeMatrix</code> replaces the current matrix with the one whose elements are specified by
            <em class="parameter"><code>m</code></em>.
            The current matrix is the projection matrix,
            modelview matrix,
            or texture matrix,
            depending on the current matrix mode
            (see <a class="citerefentry" href="glMatrixMode"><span class="citerefentry"><span class="refentrytitle">glMatrixMode</span></span></a>).
        </p><p>
            The current matrix, M, defines a transformation of coordinates.
            For instance, assume M refers to the modelview matrix.
            If
            <math overflow="scroll">

                <mrow>
                    <mi mathvariant="italic">v</mi>
                    <mo>=</mo>
                    <mfenced open="(" close=")">
                        <mrow>
                            <mi mathvariant="italic">v</mi>
                            <mo>⁡</mo>
                            <mfenced open="[" close="]">
                                <mn>0</mn>
                            </mfenced>
                        </mrow>
                        <mrow>
                            <mi mathvariant="italic">v</mi>
                            <mo>⁡</mo>
                            <mfenced open="[" close="]">
                                <mn>1</mn>
                            </mfenced>
                        </mrow>
                        <mrow>
                            <mi mathvariant="italic">v</mi>
                            <mo>⁡</mo>
                            <mfenced open="[" close="]">
                                <mn>2</mn>
                            </mfenced>
                        </mrow>
                        <mrow>
                            <mi mathvariant="italic">v</mi>
                            <mo>⁡</mo>
                            <mfenced open="[" close="]">
                                <mn>3</mn>
                            </mfenced>
                        </mrow>
                    </mfenced>
                </mrow>
            </math>
            is the set of object coordinates
            of a vertex,
            and <em class="parameter"><code>m</code></em> points to an array of
            <math overflow="scroll">

                <mn>16</mn>
            </math>
            single- or double-precision
            floating-point values
            <math overflow="scroll">

                <mrow>
                    <mi mathvariant="italic">m</mi>
                    <mo>=</mo>
                    <mfenced open="{" close="}">
                        <mrow>
                            <mi mathvariant="italic">m</mi>
                            <mo>⁡</mo>
                            <mfenced open="[" close="]">
                                <mn>0</mn>
                            </mfenced>
                        </mrow>
                        <mrow>
                            <mi mathvariant="italic">m</mi>
                            <mo>⁡</mo>
                            <mfenced open="[" close="]">
                                <mn>1</mn>
                            </mfenced>
                        </mrow>
                        <mi mathvariant="italic">...</mi>
                        <mrow>
                            <mi mathvariant="italic">m</mi>
                            <mo>⁡</mo>
                            <mfenced open="[" close="]">
                                <mn>15</mn>
                            </mfenced>
                        </mrow>
                    </mfenced>
                </mrow>
            </math>,
            then the modelview transformation
            <math overflow="scroll">

                <mrow>
                    <mi mathvariant="italic">M</mi>
                    <mo>⁡</mo>
                    <mfenced open="(" close=")">
                        <mi mathvariant="italic">v</mi>
                    </mfenced>
                </mrow>
            </math>
            does the following:
        </p><p>
            </p><div class="informalequation"><math overflow="scroll">

                <mrow>
                    <mrow>
                        <mi mathvariant="italic">M</mi>
                        <mo>⁡</mo>
                        <mfenced open="(" close=")">
                            <mi mathvariant="italic">v</mi>
                        </mfenced>
                    </mrow>
                    <mo>=</mo>
                    <mrow>
                        <mfenced open="(" close=")">
                            <mtable>
                                <mtr>
                                    <mtd>
                                        <mrow>
                                            <mi mathvariant="italic">m</mi>
                                            <mo>⁡</mo>
                                            <mfenced open="[" close="]">
                                                <mn>0</mn>
                                            </mfenced>
                                        </mrow>
                                    </mtd>
                                    <mtd>
                                        <mrow>
                                            <mi mathvariant="italic">m</mi>
                                            <mo>⁡</mo>
                                            <mfenced open="[" close="]">
                                                <mn>1</mn>
                                            </mfenced>
                                        </mrow>
                                    </mtd>
                                    <mtd>
                                        <mrow>
                                            <mi mathvariant="italic">m</mi>
                                            <mo>⁡</mo>
                                            <mfenced open="[" close="]">
                                                <mn>2</mn>
                                            </mfenced>
                                        </mrow>
                                    </mtd>
                                    <mtd>
                                        <mrow>
                                            <mi mathvariant="italic">m</mi>
                                            <mo>⁡</mo>
                                            <mfenced open="[" close="]">
                                                <mn>3</mn>
                                            </mfenced>
                                        </mrow>
                                    </mtd>
                                </mtr>
                                <mtr>
                                    <mtd>
                                        <mrow>
                                            <mi mathvariant="italic">m</mi>
                                            <mo>⁡</mo>
                                            <mfenced open="[" close="]">
                                                <mn>4</mn>
                                            </mfenced>
                                        </mrow>
                                    </mtd>
                                    <mtd>
                                        <mrow>
                                            <mi mathvariant="italic">m</mi>
                                            <mo>⁡</mo>
                                            <mfenced open="[" close="]">
                                                <mn>5</mn>
                                            </mfenced>
                                        </mrow>
                                    </mtd>
                                    <mtd>
                                        <mrow>
                                            <mi mathvariant="italic">m</mi>
                                            <mo>⁡</mo>
                                            <mfenced open="[" close="]">
                                                <mn>6</mn>
                                            </mfenced>
                                        </mrow>
                                    </mtd>
                                    <mtd>
                                        <mrow>
                                            <mi mathvariant="italic">m</mi>
                                            <mo>⁡</mo>
                                            <mfenced open="[" close="]">
                                                <mn>7</mn>
                                            </mfenced>
                                        </mrow>
                                    </mtd>
                                </mtr>
                                <mtr>
                                    <mtd>
                                        <mrow>
                                            <mi mathvariant="italic">m</mi>
                                            <mo>⁡</mo>
                                            <mfenced open="[" close="]">
                                                <mn>8</mn>
                                            </mfenced>
                                        </mrow>
                                    </mtd>
                                    <mtd>
                                        <mrow>
                                            <mi mathvariant="italic">m</mi>
                                            <mo>⁡</mo>
                                            <mfenced open="[" close="]">
                                                <mn>9</mn>
                                            </mfenced>
                                        </mrow>
                                    </mtd>
                                    <mtd>
                                        <mrow>
                                            <mi mathvariant="italic">m</mi>
                                            <mo>⁡</mo>
                                            <mfenced open="[" close="]">
                                                <mn>10</mn>
                                            </mfenced>
                                        </mrow>
                                    </mtd>
                                    <mtd>
                                        <mrow>
                                            <mi mathvariant="italic">m</mi>
                                            <mo>⁡</mo>
                                            <mfenced open="[" close="]">
                                                <mn>11</mn>
                                            </mfenced>
                                        </mrow>
                                    </mtd>
                                </mtr>
                                <mtr>
                                    <mtd>
                                        <mrow>
                                            <mi mathvariant="italic">m</mi>
                                            <mo>⁡</mo>
                                            <mfenced open="[" close="]">
                                                <mn>12</mn>
                                            </mfenced>
                                        </mrow>
                                    </mtd>
                                    <mtd>
                                        <mrow>
                                            <mi mathvariant="italic">m</mi>
                                            <mo>⁡</mo>
                                            <mfenced open="[" close="]">
                                                <mn>13</mn>
                                            </mfenced>
                                        </mrow>
                                    </mtd>
                                    <mtd>
                                        <mrow>
                                            <mi mathvariant="italic">m</mi>
                                            <mo>⁡</mo>
                                            <mfenced open="[" close="]">
                                                <mn>14</mn>
                                            </mfenced>
                                        </mrow>
                                    </mtd>
                                    <mtd>
                                        <mrow>
                                            <mi mathvariant="italic">m</mi>
                                            <mo>⁡</mo>
                                            <mfenced open="[" close="]">
                                                <mn>15</mn>
                                            </mfenced>
                                        </mrow>
                                    </mtd>
                                </mtr>
                            </mtable>
                        </mfenced>
                        <mo>×</mo>
                        <mfenced open="(" close=")">
                            <mtable>
                                <mtr>
                                    <mtd>
                                        <mrow>
                                            <mi mathvariant="italic">v</mi>
                                            <mo>⁡</mo>
                                            <mfenced open="[" close="]">
                                                <mn>0</mn>
                                            </mfenced>
                                        </mrow>
                                    </mtd>
                                </mtr>
                                <mtr>
                                    <mtd>
                                        <mrow>
                                            <mi mathvariant="italic">v</mi>
                                            <mo>⁡</mo>
                                            <mfenced open="[" close="]">
                                                <mn>1</mn>
                                            </mfenced>
                                        </mrow>
                                    </mtd>
                                </mtr>
                                <mtr>
                                    <mtd>
                                        <mrow>
                                            <mi mathvariant="italic">v</mi>
                                            <mo>⁡</mo>
                                            <mfenced open="[" close="]">
                                                <mn>2</mn>
                                            </mfenced>
                                        </mrow>
                                    </mtd>
                                </mtr>
                                <mtr>
                                    <mtd>
                                        <mrow>
                                            <mi mathvariant="italic">v</mi>
                                            <mo>⁡</mo>
                                            <mfenced open="[" close="]">
                                                <mn>3</mn>
                                            </mfenced>
                                        </mrow>
                                    </mtd>
                                </mtr>
                            </mtable>
                        </mfenced>
                    </mrow>
                </mrow>
            </math></div><p>
        </p><p>
        </p><p>
            Projection and texture transformations are similarly defined.
        </p><p>
            Calling <code class="function">glLoadTransposeMatrix</code> with matrix
            <math overflow="scroll"><mi mathvariant="italic">M</mi></math>
            is identical in operation to
            <a class="citerefentry" href="glLoadMatrix"><span class="citerefentry"><span class="refentrytitle">glLoadMatrix</span></span></a> with
            <math overflow="scroll">

                <msup><mi mathvariant="italic">M</mi>
                <mi mathvariant="italic">T</mi>
                </msup>
            </math>,
            where
            <math overflow="scroll"><mi mathvariant="italic">T</mi></math>
            represents the transpose.
        </p></div><div class="refsect1" lang="en" xml:lang="en"><a id="notes"></a><h2>Notes</h2><p>
            <code class="function">glLoadTransposeMatrix</code> is available only if the GL version is 1.3 or greater.
        </p><p>
            While the elements of the matrix may be specified with
            single or double precision, the GL implementation may
            store or operate on these values in less than single
            precision.
        </p></div><div class="refsect1" lang="en" xml:lang="en"><a id="errors"></a><h2>Errors</h2><p>
            <code class="constant">GL_INVALID_OPERATION</code> is generated if <code class="function">glLoadTransposeMatrix</code>
            is executed between the execution of <a class="citerefentry" href="glBegin"><span class="citerefentry"><span class="refentrytitle">glBegin</span></span></a>
            and the corresponding execution of <a class="citerefentry" href="glEnd"><span class="citerefentry"><span class="refentrytitle">glEnd</span></span></a>.
        </p></div><div class="refsect1" lang="en" xml:lang="en"><a id="associatedgets"></a><h2>Associated Gets</h2><p>
            <a class="citerefentry" href="glGet"><span class="citerefentry"><span class="refentrytitle">glGet</span></span></a> with argument <code class="constant">GL_MATRIX_MODE</code>
        </p><p>
            <a class="citerefentry" href="glGet"><span class="citerefentry"><span class="refentrytitle">glGet</span></span></a> with argument <code class="constant">GL_COLOR_MATRIX</code>
        </p><p>
            <a class="citerefentry" href="glGet"><span class="citerefentry"><span class="refentrytitle">glGet</span></span></a> with argument <code class="constant">GL_MODELVIEW_MATRIX</code>
        </p><p>
            <a class="citerefentry" href="glGet"><span class="citerefentry"><span class="refentrytitle">glGet</span></span></a> with argument <code class="constant">GL_PROJECTION_MATRIX</code>
        </p><p>
            <a class="citerefentry" href="glGet"><span class="citerefentry"><span class="refentrytitle">glGet</span></span></a> with argument <code class="constant">GL_TEXTURE_MATRIX</code>
        </p></div>
        {$pipelinestall}{$examples}
        <div class="refsect1" lang="en" xml:lang="en"><a id="seealso"></a><h2>See Also</h2><p>
            <a class="citerefentry" href="glLoadIdentity"><span class="citerefentry"><span class="refentrytitle">glLoadIdentity</span></span></a>,
            <a class="citerefentry" href="glLoadMatrix"><span class="citerefentry"><span class="refentrytitle">glLoadMatrix</span></span></a>,
            <a class="citerefentry" href="glMatrixMode"><span class="citerefentry"><span class="refentrytitle">glMatrixMode</span></span></a>,
            <a class="citerefentry" href="glMultMatrix"><span class="citerefentry"><span class="refentrytitle">glMultMatrix</span></span></a>,
            <a class="citerefentry" href="glMultTransposeMatrix"><span class="citerefentry"><span class="refentrytitle">glMultTransposeMatrix</span></span></a>,
            <a class="citerefentry" href="glPushMatrix"><span class="citerefentry"><span class="refentrytitle">glPushMatrix</span></span></a>
        </p></div><div class="refsect1" lang="en" xml:lang="en"><div id="Copyright"><h2>Copyright</h2><p>
            Copyright © 1991-2006
            Silicon Graphics, Inc. This document is licensed under the SGI
            Free Software B License. For details, see
            <a class="ulink" href="http://oss.sgi.com/projects/FreeB/" target="_top">http://oss.sgi.com/projects/FreeB/</a>.
        </p></div></div></div>
